<?php
/**
* 任务日志功能
 */

quanli_require('module/base/system/taskLog.class.php');

class pa_taskLog {

    public function execute(){

        if (isset($_REQUEST['operFlg'])) {

            switch($_REQUEST['operFlg']) {

                case 1:
                    $this->getTaskLogList();
                    break;

                default:
                    backendError();
                    break;

            }

        } else {

            backendError();

        }

    }


    /**
     * 任务日志列表
    */
    private function getTaskLogList() {

        global $G_PGLOB;


        $sql = 'SELECT name FROM log_task GROUP BY name';

        $result = $G_PGLOB->DBCA->stmt_query($sql);

        if(!is_null($result) && !empty($result[0]->name)){
            $name = $result;
            $G_PGLOB->smarty->assign('name',$name);
        }

        $G_PGLOB->smarty->display('system/taskLog.tpl');


    }

}

?>